﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common
{
    public class Helper_CreateHTMLPiece
    {
        public string ColorFont_Check(bool b)
        {
            if (b)
            {
                return ColorFont("通过","color:green");
            }
            else
            {
                return ColorFont("拒绝", "color:red");
            }
        }
        public string ColorFont(string str, string color)
        {
            return "<span style=\"color:" + color + "\">" + str + "</span>";
        }
    }
}
